package com.jdk.demo.thread.thread;

public class ThreadDemo2 {
	
	public static void main(String[] args) throws InterruptedException {
		Thread t = new Thread(() -> {
			System.out.println("===");
			try {
				Thread.sleep(1000);
			} catch (Exception e) {
				e.printStackTrace();
			}
		});
		t.start();
		t.join();
		//Thread.sleep(1000000, 10000);
		System.out.println("main finish");
	}

}
